package cn.broadmax.boot.modules.sys.mapper;

import cn.broadmax.boot.modules.sys.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author jexx
 * @since 2020-07-21
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("select * from sys_role where code = #{code}")
    SysRole getByCodeSysRole(@Param("code") String code);

}
